package com.dries.portal.module.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户评论表
 * 
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-08-06 15:56:47
 */
@Data
@TableName("xx_discuss")
public class Discuss implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 用户ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;
	/**
	 * 用户头像
	 */
	private String userAvatar;
	/**
	 * 用户昵称
	 */
	private String userNickname;
	/**
	 * 评论标题
	 */
	private String discussTitle;
	/**
	 * 评论封面
	 */
	private String discussCover;
	/**
	 * 点赞数
	 */
	private Integer discussLikes;
	/**
	 * 评论店铺ID
	 */
	private Integer discussShopId;
	/**
	 * 评论商品ID
	 */
	private Integer discussGoodsId;
	/**
	 * 评论等级
	 */
	private Integer discussLevel;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改时间
	 */
	private Date modifiedTime;

}
